package com.dingding.manager.modules.system.dto.user;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.dingding.manager.common.beans.sys.SysRole;

public class UserInfo implements Serializable{
	/** 
	* @Fields serialVersionUID : 
	*/ 
	private static final long serialVersionUID = 1L;
	
	private Integer sysUserId;	//编号
	private int companyId;		//公司id
	private int deptId;			//部门id
	private String loginName;	//登录名
	private String trueName;	//真实姓名	
	
	private List<SysRole> list=new ArrayList<SysRole>();

	public Integer getSysUserId() {
		return sysUserId;
	}

	public void setSysUserId(Integer sysUserId) {
		this.sysUserId = sysUserId;
	}

	public int getCompanyId() {
		return companyId;
	}

	public void setCompanyId(int companyId) {
		this.companyId = companyId;
	}

	public int getDeptId() {
		return deptId;
	}

	public void setDeptId(int deptId) {
		this.deptId = deptId;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getTrueName() {
		return trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	public List<SysRole> getList() {
		return list;
	}

	public void setList(List<SysRole> list) {
		this.list = list;
	}

	
	
	/**
	 * 是否超级管理员
	 */
	public  boolean isAdmin(Integer sysUserId){
		if (sysUserId!=null && sysUserId== 1) {
			return true;
		}
		return false;
	}

	@Override
	public String toString() {
		return "UserInfo [sysUserId=" + sysUserId + ", companyId=" + companyId + ", deptId=" + deptId + ", loginName="
				+ loginName + ", trueName=" + trueName + ", list=" + list + "]";
	}
	
	
	
	

}